<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"://w3/TR/html4/loose.dtd">
<html>
<head>
<meta -equiv="Content-Type" content="text/html; charset=gb2312">
<title>简单文字变色</title>
</head>
<body>
<script language="javascript">
var colors=new Array("red","orange","green","blue","browm","putple","gray","white");
var ind=0;
function changecolor()
{
	document.fgColor=colors[ind++];
	if (ind==(colors.length)){ind=0}
}
setInterval("changecolor()",50);
window.οnlοad=changecolor;
</script>
<h1 align="center">朋友欢迎您</h1>
</body>
</html>